#include <stdio.h>

const char* dev = "/dev/pts/1";

int main()
{
	FILE *fp = fopen(dev, "w");
	if(fp == NULL)
	{
		printf("open %s error!\n", dev);
		return 1;
	}
	int cnt = 10;
	while(cnt--)
	{
		printf("hello bit, hello %d \n", cnt);
		sleep(1);
	}
	fclose(fp);

	return 0;
}
